how to select all but last columns in python

67

how to select all but last columns in python -

df.iloc[:,:-1]

Comments

Submit
0 Comments